package cn.zzuli.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Date: 2020/12/12 21:06
 * @Author: 绯色下午茶
 * @Description:
 */
@Service
@FeignClient(value = "PROVIDER-HYSTRIX-PAYMENT",fallback = PaymentFeignServiceImpl.class)
public interface PaymentFeignService {
    @GetMapping("/provider/payment/hystrix/ok/{id}")
    public String paymentInfo_OK(@PathVariable("id") Long id);
    @GetMapping("/provider/payment/hystrix/timeout/{id}")
    public String paymentInfo_TimeOut(@PathVariable("id") Long id);
}
